package com.xlh.param.cases;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xlh.util.InputValidator;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * 课程达成度参数实体
 */
public class ConcludeParam {

    @ApiModelProperty(required = true,value = "达成名称")
    @NotBlank(message = "达成度名称不能为空")
    @Size(max = 15,message = "达成度名称不能超过15个字符")
    private String name;


    @ApiModelProperty(required = true,value = "责任人")
    @NotBlank(message = "负责人名称不能为空")
    @Size(max = 10, message = "负责人名称不能超过10个字符")
    private String principal;

    public String getName() {
        return name == null ? null : InputValidator.regSpecialChar(name);
    }

}
